{% load staticfiles %}
<!DOCTYPE html>
<html style="height: 100%; width: 100%;">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>历史审核</title>
        <link rel="stylesheet" href="{% static 'css/layui.css' %}">
        <link rel="stylesheet" href="{% static 'css/audit.css' %}">
        <style>
            .layui-form-item .layui-input-inline {
                float: left;
                width: auto;
                margin-right: 10px;
            }
        </style>
    </head>
    <body>
        <div id="divtwo" class="public_div">
            <div class="layui-container public_div" >
                <div class="layui-row public_div layui-col-space20" >
                    <div class="layui-col-md6"  style="height: 100%;">
                        <fieldset class="layui-elem-field">
                            <legend>用户关联</legend>
                            <div class="layui-field-box">
                                <form id="formadd_user" name="formadd_user" class="layui-form layui-form-pane">
                                    <div id="username_do" class="layui-form-item">
                                        <label class="layui-form-label">用户选择</label>
                                        <div class="layui-input-block">
                                            <select id="username" name="username" lay-filter="aihao" lay-verify="required" >
                                                <option value=""></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div id="username_dt" class="layui-form-item layui-hide">
                                        <label class="layui-form-label">用户选择</label>
                                        <div class="layui-input-block">
                                            <input id="username_t" type="text" name="username" autocomplete="off" placeholder="用户名" class="layui-input" disabled>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">角色</label>
                                        <div class="layui-input-block">
                                            <select id="rule_id" name="rule_id" lay-filter="aihao" lay-verify="required">
                                                <option value=""></option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="margin-bottom: 0;">
                                        <div class="layui-input-inline inline-button" >
                                            <button id="project_u" type="button" class="layui-btn" lay-submit lay-filter="project_u">提交</button>
                                            <button id="project_um" type="button" class="layui-btn layui-btn-warm layui-hide" lay-submit lay-filter="project_um">修改</button>
                                            <button id="project_ux" type="reset" class="layui-btn layui-btn-primary layui-hide">取消</button>
                                            <button id="initiate_u" type="reset" class="layui-btn layui-hide" lay-submit lay-filter="initiate_u">清空</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </fieldset>
                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>审核用户表</legend>
                        </fieldset>
                        <table class="layui-table" id="audit_user" lay-filter="audit_user"></table>
                    </div>
                    <div class="layui-col-md6" style="height: 100%;">
                        <fieldset class="layui-elem-field">
                            <legend>jenkins配置</legend>
                            <div class="layui-field-box">
                                <form id="formadd_jenkins" name="formadd_jenkins" class="layui-form layui-form-pane">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">项目名称</label>
                                        <div class="layui-input-block">
                                            <input id="item_name" lay-verify="required" type="text" name="item_name" autocomplete="off" placeholder="请输入标题" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">jenkins名称</label>
                                        <div class="layui-input-block">
                                            <input id="item_jenkins" lay-verify="required" type="text" name="item_jenkins" autocomplete="off" placeholder="请输入标题" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item"  style="margin-bottom: 0;">
                                        <div class="layui-input-inline inline-button">
                                            <button id="project_b" type="button" class="layui-btn " lay-submit lay-filter="project_b">提交</button>
                                            <button id="project_bm" type="button" class="layui-btn layui-btn-warm layui-hide" lay-submit lay-filter="project_bm">修改</button>
                                            <button id="project_bx" type="reset" class="layui-btn layui-btn-primary layui-hide">取消</button>
                                            <button id="initiate_b" type="reset" class="layui-btn layui-hide" lay-submit lay-filter="initiate_b">清空</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </fieldset>
                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>审核用户表</legend>
                        </fieldset>
                        <table class="layui-table" id="audit_jenkins" lay-filter="audit_jenkins"></table>
                    </div>
                </div>
            </div>
        </div>
        <script>
            var rule_level = {{ rule_level|safe }};
            var r_user_list = {{ r_user_list|safe }};
            var item_list = {{ item_list|safe }};
            var poor_list = {{ poor_list|safe }};
            var rule_json = {{ rule_json|safe }};
        </script>
        <script type="text/html" id="jDemo">
            <a class="layui-btn layui-btn-xs" lay-event="mod_j">修改</a>
            <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="del_j">删除</a>
        </script>
        <script type="text/html" id="uDemo">
            <a class="layui-btn layui-btn-xs" lay-event="mod_u">修改</a>
            <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="del_u">删除</a>
        </script>
        <script src="{% static 'layui.all.js' %}"></script>
        <script src="{% static 'js/audit/manage_conf.js' %}"></script>
    </body>
</html>